package com.akcome.apollo.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.common.utils.bean.AkResult;

import com.akcome.apollo.domain.BmpUser;

/**
 * 用户信息Service接口
 *
 * @author wn
 * @version $v: 1.0.0, $time:2017-12-26 08:49:00 Exp $
 */
public interface BmpUserService{

	BmpUser save(BmpUser bmpUser);
	
	BmpUser findOne(Long id);

	BmpUser register(String email, String password);

	BmpUser findByEmail(String email);

	AkResult login(String email, String password, String imageCode, HttpServletRequest request,
			HttpServletResponse response) throws Exception;

	Long countUserError(String email);
}
